package com.worldtolearn.order.dao;

import java.io.Serializable;

import org.hibernate.SessionFactory;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.orm.hibernate3.support.HibernateDaoSupport;
import org.springframework.stereotype.Repository;

import com.worldtolearn.order.entity.OrderLine;

@Repository
public class OrderLineDaoImpl extends HibernateDaoSupport  implements IOrderLineDAO, Serializable {

	
	@Autowired
	public void init(SessionFactory factory) {
	    setSessionFactory(factory);
	}
	
	
	@Override
	public void addLine(OrderLine ol) {
		getHibernateTemplate().save(ol);
	}

	@Override
	public void delete(OrderLine ol) {
		// TODO Auto-generated method stub

	}

}
